/*
 * 文件名称: PageResult.java Copyright 2011-2015 Ximalaya All right reserved.
 */
package top.zxybird.common.web.view;

import java.util.List;

/**
 * 通用的前台web分页返回结果
 */
public class PageResult<T> {
  private List<T> data;
  private Integer page;
  private Integer pageSize;
  private Integer totalSize;

  public PageResult() {
  }

  public PageResult(List<T> data, Integer page, Integer pageSize, Integer totalSize) {
    this.data = data;
    this.page = page;
    this.pageSize = pageSize;
    this.totalSize = totalSize;
  }

  public List<T> getData() {
    return data;
  }

  public void setData(List<T> data) {
    this.data = data;
  }

  public Integer getPage() {
    return page;
  }

  public void setPage(Integer page) {
    this.page = page;
  }

  public Integer getPageSize() {
    return pageSize;
  }

  public void setPageSize(Integer pageSize) {
    this.pageSize = pageSize;
  }

  public Integer getTotalSize() {
    return totalSize;
  }

  public void setTotalSize(Integer totalSize) {
    this.totalSize = totalSize;
  }
}
